package guoanmaker.operator.business.service;

import guoanmaker.operator.business.model.OperatorAppBanner;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorAppBannerServiceInterface 
 * @Description: OperatorAppBannerServiceInterface
 * @date 2017/6/29
 */
public interface OperatorAppBannerServiceInterface {

    /** 
    * @Title: saveAppBanner
    * @Description: 新增/修改 App金刚圈
    * @param：OperatorRoundPhoto   
    * @return OperatorAppBanner    
    * @throws 
    */
    OperatorAppBanner saveAppBanner(OperatorAppBanner operatorAppBanner);

    /** 
    * @Title: getAllAppBanner
    * @Description: 查询所有App金刚圈
    * @param：void  
    * @return List<OperatorAppBanner>   
    * @throws 
    */
    List<OperatorAppBanner> getAllAppBanner(String cityId);

    /** 
    * @Title: getAllAppBannerByPage
    * @Description: 查询全部App金刚圈并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
    * @return Page<OperatorAppBanner>   
    * @throws 
    */
    Page<OperatorAppBanner> getAllAppBannerByPage(Integer page, Integer size);

    /** 
     * @Title: getAppBannerByPageOrderByWeight
     * @Description: 按权重排序查询App金刚圈并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
     * @return Page<OperatorAppBanner>   
     * @throws 
     */
    Page<OperatorAppBanner> getAppBannerByPageOrderByWeight(Integer page, Integer size);


    /** 
    * @Title: deleteAppBannerById
    * @Description: 根据Id删除App金刚圈 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteAppBannerById(String id);

    /** 
    * @Title: getAppBannerById 
    * @Description: 根据Id查询App金刚圈
    * @param： String id
    * @return OperatorAppBanner    
    * @throws 
    */
    OperatorAppBanner getAppBannerById(String id);

    /** 
     * @Title: countAllById 
     * @Description: 根据Id查询App金刚圈
     * @param： String id
     * @return Integer    
     * @throws 
     */
    Integer countAllById();

    /** 
     * @Title: getAllAndServerName 
     * @Description: 查询所有并查询服务名称
     * @return OperatorAppBanner    
     * @throws 
     */
    List<OperatorAppBanner> getAllAndServerName();
    
    void deleteBannerById(String id);

}
